import request from '@/utils/request'

// 查询项目管理列表
export function listProjectInfo(query) {
  return request({
    url: '/biz/projectInfo/list',
    method: 'get',
    params: query
  })
}

// 查询项目管理详细
export function getProjectInfo(projectId) {
  return request({
    url: '/biz/projectInfo/' + projectId,
    method: 'get'
  })
}

// 新增项目管理
export function addProjectInfo(data) {
  return request({
    url: '/biz/projectInfo',
    method: 'post',
    data: data
  })
}

// 修改项目管理
export function updateProjectInfo(data) {
  return request({
    url: '/biz/projectInfo',
    method: 'put',
    data: data
  })
}

// 删除项目管理
export function delProjectInfo(projectId) {
  return request({
    url: '/biz/projectInfo/' + projectId,
    method: 'delete'
  })
}

// 导出项目管理
export function exportProjectInfo(query) {
  return request({
    url: '/biz/projectInfo/export',
    method: 'get',
    params: query
  })
}

export function projectInfoListNotPage(query) {
  return request({
    url: '/biz/projectInfo/projectInfoListNotPage',
    method: 'get',
    params: query
  })
}

// 禁用or启用项目
export function disableProjectInfo(data) {
  return request({
    url: '/biz/projectInfo/disableProjectInfo',
    method: 'post',
    data: data
  })
}